<!--付费判断-->
{php $mpsanbiao = \Phpcmf\Service::M()->db->table('1_'.MOD_DIR.'_mpsan_buy')->where('cid', $t.id)->where('uid', $member.uid)->get()->getRowArray();}
<!--积分判断-->

{if $t.mpsanyuedumoshi == '1'}
	<!--免费阅读-->
	<div class="d-kuan d-shang-15 d-xia-10">
		<div id="aplayer{$t.id}"></div>
	</div>
{elseif $t.mpsanyuedumoshi == '2'}
<!--付费阅读-->
	{if $mpsanbiao || $t.uid == $member.id || $member.is_admin}
		<div class="d-kuan d-shang-15 d-xia-10">
			<div id="aplayer{$t.id}"></div>
		</div>
	{else}
		<div class="d-kuan d-shang-10 d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
	    	<div class="d-kuan-70 d-imgs">
	    		<img src="{HOME_THEME_PATH}web/img/mp3.png" width="40" height="40"/>
	    	</div>
	    	<div class="d-kuan">
	    		<div class="pull-left">
	    			<div class="d-wenzi-14 d-zitiyanse-hui">
	    				付费听阅MP3音频 <span class="d-wenzi-12 d-zitiyanse-hui"></span>
	    			</div>
	    			<div class="d-wenzi-14">
						{$t.mpsanyuedujinbi} 元
						
					</div>
	    		</div>
	    		<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
	    			<a href="{dr_url(MOD_DIR.'/buympsan/index', ['fid' => 0,'id'=> $t.id])}">
	    			<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
	    				购 买
	    			</div>
	    			</a>
	    		</div>
	    	</div>
	    </div>
	{/if}
{elseif $t.mpsanyuedumoshi == '3'}
	<!--积分阅读-->
	{if $mpsanbiao || $t.uid == $member.id || $member.is_admin}
			<div class="d-kuan d-shang-15 d-xia-10">
				<div id="aplayer{$t.id}"></div>
			</div>
		{else}
			<div class="d-kuan d-shang-10 d-xia-15 d-bian-1-hui d-yuanjiao-10 d-neikuang-10 d-buhuanhang">
				<div class="d-kuan-70 d-imgs">
					<img src="{HOME_THEME_PATH}web/img/mp3.png" width="40" height="40"/>
				</div>
				<div class="d-kuan">
					<div class="pull-left">
						<div class="d-wenzi-14 d-zitiyanse-hui">
							积分听阅MP3音频 <span class="d-wenzi-12 d-zitiyanse-hui"></span>
						</div>
						<div class="d-wenzi-14">
							{$t.mpsanyuedujifen} {SITE_SCORE}
							
						</div>
					</div>
					<div class="d-kuan-100 d-you-10 pull-right d-quxian-0">
						<a href="{dr_url(MOD_DIR.'/buympsanjifen/index', ['fid' => 0,'id'=> $t.id])}">
						<div class="d-kuan-50 d-hanggao-30 d-wenzi-juzhong d-shang-5 d-wenzi-12 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai">
							购 买
						</div>
						</a>
					</div>
				</div>
			</div>
		{/if}
{/if}
<style>
	
	.aplayer {
	    background: #fff;
	    font-family: Arial,Helvetica,sans-serif;
	    margin: 5px;
	    box-shadow: 0 2px 2px 0 rgba(0,0,0,.07), 0 1px 5px 0 rgba(0,0,0,.1);
	    border-radius: 10px;
	    overflow: hidden;
	    -webkit-user-select: none;
	    -moz-user-select: none;
	    -ms-user-select: none;
	    user-select: none;
	    line-height: normal;
	    position: relative;
		}
		.aplayer.aplayer-withlrc .aplayer-lrc {
		    display: none;
		}
		.aplayer-notice{
			display: none;
		}
		.d-imgs img{
			    max-width: 100%;
				margin-bottom: 0px;
		}
</style>

<script>
	{if $t.mpsanyuedumoshi == '1'}

		//mp3播放
		const ap{$t.id} = new APlayer({
			container: document.getElementById('aplayer{$t.id}'),
			listFolded: false,
			listMaxHeight: 90,
			lrcType: 3,
			mutex: true,
			audio: [
				{loop $t.mpsan $i $c}
				{
					name: '{$c.title}',
					artist: '播放',
					url: '{dr_get_file($c.file)}',
					cover: '{HOME_THEME_PATH}web/img/mp3.jpg',
					lrc: 'lrc1.lrc',
					theme: '#675b55'
				},
				{/loop}
			]
		});

	{else}
		{if $mpsanbiao || $t.uid == $member.id || $member.is_admin || $mpsanyuedumoshi == '1'}
		//mp3播放
		const ap{$t.id} = new APlayer({
			container: document.getElementById('aplayer{$t.id}'),
			listFolded: false,
			listMaxHeight: 90,
			lrcType: 3,
			mutex: true,
			audio: [
				{loop $t.mpsan $i $c}
				{
					name: '{$c.title}',
					artist: '播放',
					url: '{dr_get_file($c.file)}',
					cover: '{HOME_THEME_PATH}web/img/mp3.jpg',
					lrc: 'lrc1.lrc',
					theme: '#675b55'
				},
				{/loop}
			]
		});
		{/if}
	{/if}
</script>